<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        
        <header class="bar bar-nav fs-header-small fs-header-small">
          <a href="${ctx.host}/profile/courses" class="icon icon-left pull-left"></a>
          <h1 class="title">我的课程</h1>
        </header>
        
        <div class="content">
        
          <div class="list-block media-list no-margin">
            <ul>
              <li class="course">
                <div class="item-content">
                  <div class="item-media"><img src="${cloud.prod}/${courseRound.course.cover}-avatar" style='width: 4rem;'></div>
                  <div class="item-inner">
                    <div class="item-title-row">
                      <div class="item-title">${courseRound.course.name}</div>
                    </div>
                    <div class="item-text" style="height: 3.4rem;">
                      ${courseRound.product.name}<br>
                      共&nbsp;<span class="color-blue">${courseRound.attrs['course_amount'].value == null ? courseRound.course.hours : courseRound.attrs['course_amount'].value}</span>&nbsp;天<br>
                    </div>
                  </div>
                </div>
              </li>
            </ul>
          </div>
          <div class="row course-grid" style="margin-top: 1.8rem;">
                <%-- <div class="col-33">
                  <a href="${ctx.host}/profile/courses/${courseRound.id}/weekly-coursewares">
                    <i class="icon icon-grid-week"></i><br>
                    家庭作业
                  </a>
                </div> --%>
                <div class="col-33" style="width: 100%;">
                  <a href="${ctx.host}/profile/courses/${courseRound.id}/bmr-records">
                    <i class="icon icon-grid-bmr"></i><br>
                    三围记录
                  </a>
                </div>
        </div>
        <!-- End Content -->
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/course/course-detail.js" />
    <script type="text/javascript">
      require(['page/course/course-detail'], function(page) {
        page.init()
      })
    </script>
    
    
  </body>
</html>